package com.mx.project.services;

import com.alipay.api.AlipayApiException;
import com.mx.project.common.resp.ApiResult;
import com.mx.project.pojo.Order;
import com.mx.project.vo.CartInfo;
import com.mx.project.vo.OrderInfo;

import java.util.List;

public interface OrderService {
    String aliPay(List<CartInfo> lists, Integer uid) throws AlipayApiException;

    void submitOrder(List<Order> orders);

    List<OrderInfo> getOrderByUid(Integer uid);

    List<Order> getOrderByOnumber(String onumber);

    int updateStateByOnumber(String onumber,Integer state);
}
